package com.example.mobile2032021606168xmy0602homework;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class ShowDataActivity extends AppCompatActivity {

    private TextView tvShowUserTitle;
    private TextView tvShowUserName;
    private Button btnShowChongxindenglv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_data);
        initView();
        Intent intent = getIntent();
        tvShowUserName.setText(intent.getStringExtra("userName"));
        Bundle bundle = intent.getExtras();
      //  btnShowChongxindenglv.setText(bundle.getString("passWord"));
    }

    private void initView() {
        tvShowUserTitle = (TextView) findViewById(R.id.tv_show_userTitle);
        tvShowUserName = (TextView) findViewById(R.id.tv_show_userName);
        btnShowChongxindenglv = (Button) findViewById(R.id.btn_show_chongxindenglv);
    }
}